<template>
  <div>
    <router-view></router-view>
    <!-- <canvas id="canvas" style="position: fixed; top: 0; left: 0; z-index: -1000;"></canvas> -->
  </div>
</template>

<script>
import User from '@/page/user/index.vue'
import Login from './page/Login/Login.vue';
import Admin from './page/admin.vue';
import Stars from "./assets/starts"; // 导入星星动画的方法
export default {
  name: 'App',
  components: { User, Login, Admin },
  mounted() {
    // 在组件挂载后调用星星动画方法
    Stars.startAnimation();
  },
}
</script>
<style></style>